package aiguigu08.constructor.exer2;

/**
 * ClassName: TriAngle
 * Package: aiguigu08.constructor
 * Description:
 *
 * @Author ZY
 * @Create 2024/10/11 21:58
 * @Version 1.0
 */
public class TriAngle {

    private double base;
    private double height;

    public double getBase(){
        return base;
    }

    public void setBase(double b){
        base = b;
    }

    public double getHeight(){
        return height;
    }

    public void setHeight(double h){
        height = h;
    }

    public TriAngle(){

    }

    public TriAngle(double b,double h){
        base = b;
        height = h;
    }

    public double findArea(){
        return base * height / 2;
    }
}
